#pragma once
#include <QPainter>
#include "GameEntity.h"


#define DEBUG_CELL

#ifdef DEBUG_CELL
#include <cstdio>
#endif


class Cell : public GameEntity
{
    Q_OBJECT

public:
    Cell(const Cell& obj, bool copyScene);
    Cell(char Type, int X, int Y);
    ~Cell();

    Cell& operator = (const Cell& obj);

    void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget);

    QPixmap * GetBitmap();
    QRectF boundingRect() const;
    QSizeF size() const;
    char GetType();

protected:
   int posX;
   int posY;
   char type;
};
